package com.ssy.lingxi.platform.manage.model.request.content;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 图片管理 - 新增/修改 - 请求实体类
 * @author fhj
 * @version 2.0.0
 * @date 2020/9/17
 */
@Data
public class ContentImageRequest {

    @ApiModelProperty(value = "主键id")
    @NotNull(message = "主键id不能为空", groups = {ContentImageRequest.Update.class})
    private Long id;

    @ApiModelProperty(value = "图片名称")
    @NotEmpty(message = "图片名称不能为空", groups = {ContentImageRequest.Add.class, ContentImageRequest.Update.class})
    private String name;

    @ApiModelProperty(value = "使用场景 1-WEB 2-APP")
    @NotNull(message = "使用场景不能为空", groups = {ContentImageRequest.Add.class, ContentImageRequest.Update.class})
    private Integer useScene;

    @ApiModelProperty(value = "所在位置 1-WEB登录页面 2-平台后台登录页面 3-APP引导页 4-APP启动页")
    @NotNull(message = "所在位置不能为空", groups = {ContentImageRequest.Add.class, ContentImageRequest.Update.class})
    private Integer position;

    @ApiModelProperty(value = "图片排序")
    private Integer sort;

    @ApiModelProperty(value = "图片地址")
    @NotEmpty(message = "图片地址不能为空", groups = {ContentImageRequest.Add.class, ContentImageRequest.Update.class})
    private String imageUrl;

    public interface Add {
    }

    public interface Update {
    }

}
